#!/usr/bin/env bash
text="The quick brown fox jumps over the lazy dog"
if [[ $text =~ quick.*(?=jumps) ]]; then
    echo "Match found: ${BASH_REMATCH[0]}"
else
    echo "No match found"
fi

